<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>Kernel Debugging Support</title>
    <meta name="generator" content="Muse">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <link rel="stylesheet" type="text/css"charset="utf-8" media="all" href="../../styles/common.css"  />

    <script src="../../scripts/jsMath/easy/load.js"></script>
  </head>

  <body>

    <h1>Kernel Debugging Support
      <!-- menu start here -->
      <div class="menu">
        <div class="menuitem">
          <a href="../../home/index.html">Home</a>
        </div>
        <div class="menuitem">
          <a href="../../courses/index.html">Courses</a>
        </div>
        <div class="menuitem">
          <a href="../../projects/index.html">Projects</a>
        </div>
        <div class="menuitem">
          <a href="../../complang/index.html">CompLang</a>
        </div>
        <div class="menuitem">
          <a href="../../code/index.html">CodeReading</a>
        </div>
        <div class="menuitem">
          <a href="../../software/index.html">Software</a>
        </div>
        <div class="menuitem">
          <a href="../../lectures/index.html">Lectures</a>
        </div>
      </div>
      <!-- menu ends here -->

    </h1>


    <!-- Page published by Emacs Muse begins here -->

<h2>/proc/sys/kernel/printk</h2>

<p class="first">from
<a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/Reference_Guide/s3-proc-sys-kernel.html">http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/Reference_Guide/s3-proc-sys-kernel.html</a></p>

<p>printk — This file controls a variety of settings related to printing
or logging error messages. Each error message reported by the kernel
has a loglevel associated with it that defines the importance of the
message. The loglevel values break down in this order:</p>

<ul>
<li>0 — Kernel emergency. The system is unusable.</li>
<li>1 — Kernel alert. Action must be taken immediately.</li>
<li>2 — Condition of the kernel is considered critical.</li>
<li>3 — General kernel error condition.</li>
<li>4 — General kernel warning condition.</li>
<li>5 — Kernel notice of a normal but significant condition.</li>
<li>6 — Kernel informational message.</li>
<li>7 — Kernel debug-level messages.</li>
</ul>

<p>Four values are found in the printk file:</p>

<pre class="src">
6     4     1     7
</pre>

<p>Each of these values defines a different rule for dealing with error
messages. The first value, called the console loglevel, defines the
lowest priority of messages printed to the console. (Note that, the
lower the priority, the higher the loglevel number.) The second value
sets the default loglevel for messages without an explicit loglevel
attached to them. The third value sets the lowest possible loglevel
configuration for the console loglevel. The last value sets the
default value for the console loglevel.</p>



<!-- Page published by Emacs Muse ends here -->
<hl />
<p />
<!-- <center> -->
<!--   Updated at  -->
<!--   2010-03-09 -->
<!-- </center> -->

<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-2241833-12");
  pageTracker._trackPageview();
  } catch(err) {}</script>

</body>
</html>

